<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
/*			var array = new Array(7);
			console.log(array.length);
			
			var array1 = new Array(100, "a", true);
			console.log(array1.length);*/
			
			//创建一个空数组
			var array = new Array();
			array[0] = "343";
			console.log(array);//["343"]
			console.log(array.length);//1
			array[1] = true;
			console.log(array);//["343", true]
			console.log(array.length);//2
			
			var array1 = new Array();
			array1.push("zhansgan");
			console.log(array1);//["zhansgan"]
			array1.push(34);
			console.log(array1);//["zhansgan", 34]
			array1.push(false);
			console.log(array1);//["zhansgan", 34, false]
			
			console.log(array1[1]);//34
			console.log(array1.pop());//false
			console.log(array1);
			
		</script>
	</head>
	<body>
	</body>
</html>
